home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shadez.swf / scripts / STC9 / IO / CKey.as next >
Text File  |  2011-08-19  |  1KB  |  76 lines

  1. package STC9.IO
  2. {
  3.    import flash.utils.getTimer;
  4.    
  5.    public class CKey
  6.    {
  7.       
  8.       static var mNumberOfSamples:Number = 30;
  9.        
  10.       
  11.       public var mReleased:int;
  12.       
  13.       public var mPressed:int;
  14.       
  15.       public var mDown:Boolean;
  16.       
  17.       public var mKeyCode:int;
  18.       
  19.       public function CKey(param1:Number)
  20.       {
  21.          if(true)
  22.          {
  23.             super();
  24.             mKeyCode = param1;
  25.          }
  26.       }
  27.       
  28.       public function get _CLASSID_() : String
  29.       {
  30.          return "CKey";
  31.       }
  32.       
  33.       public function Clear() : void
  34.       {
  35.          mDown = false;
  36.          mPressed = 0;
  37.          mReleased = 0;
  38.       }
  39.       
  40.       public function RegisterAsUp() : *
  41.       {
  42.          if(true)
  43.          {
  44.             if(mDown)
  45.             {
  46.                if(true)
  47.                {
  48.                   mDown = false;
  49.                }
  50.                mReleased = getTimer();
  51.             }
  52.          }
  53.       }
  54.       
  55.       public function RegisterAsDown() : *
  56.       {
  57.          if(true)
  58.          {
  59.             if(!mDown)
  60.             {
  61.                if(true)
  62.                {
  63.                   mDown = true;
  64.                }
  65.                mPressed = getTimer();
  66.             }
  67.          }
  68.       }
  69.       
  70.       public function get _BASECLASSID_() : String
  71.       {
  72.          return "CKey";
  73.       }
  74.    }
  75. }
  76.